package com.gc.common.resp;


import lombok.Data;

/**
 * @author xyl
 * @create 2020/8/7 17:09
 * @desc 响应体
**/
@Data
public class ApiResult<T> {

    private int code;

    private String message;

    private T data;

    public ApiResult() {
        this(200,"请求成功!");
    }

    public ApiResult(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
